package org.whale.bha.common;

/**
 * 易宝接口通用配置
 * @author sshss
 *
 */
public class BHACommon {
	/**证书加密的key**/
	public static final String key = "123qwe";
	/**直连网关地址**/
	public static final String redirectUrl = "http://220.181.25.233:8081/member/bhaexter/bhaController";
	/***测试用sign***/
	public  static final String SIGN = "MIIFKQYJKoZIhvcNAQcCoIIFGjCCBRYCAQExCzAJBgUrDgMCGgUAMC8GCSqGSIb3DQEHAaAiBCA4NmU4YTU3YjY4MzNjMDc4YTFmYWNlMzc4YWQ0YWJiY6CCA+swggPnMIIDUKADAgECAhBqe6nrCt+fci3xZjQH7hHsMA0GCSqGSIb3DQEBBQUAMCoxCzAJBgNVBAYTAkNOMRswGQYDVQQKExJDRkNBIE9wZXJhdGlvbiBDQTIwHhcNMTAxMjA2MDQ0ODE1WhcNMTExMjA2MDQ0ODE1WjCBgTELMAkGA1UEBhMCQ04xGzAZBgNVBAoTEkNGQ0EgT3BlcmF0aW9uIENBMjEWMBQGA1UECxMNcmEueWVlcGF5LmNvbTESMBAGA1UECxMJQ3VzdG9tZXJzMSkwJwYDVQQDFCAwNDFAWjEwMDAwMzY1NjQyQGxpYmluZ0AwMDAwMDAwMTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuDInQe7L04o8f0pVUrAF52yEWFZiVpqzZXr7BpFll0qVaRNHVwycO2z/kpWMYGy2YXi2I16Wtn+9SVwjcVOqUBXQMGvuiDApJ7mJNN0VkLNppRCpJpAZWRbSh2Sn7zxn768dsu2Et+saIOGpSYCjBJBlmn7KS7t84E4tU3EFCPkCAwEAAaOCAbQwggGwMB8GA1UdIwQYMBaAFPCN7bNBu/vvCB5VAsMxN+88FE7NMB0GA1UdDgQWBBRWmAkcFN/mHizNprNca0Rdge/6YDALBgNVHQ8EBAMCBeAwDAYDVR0TBAUwAwEBADAdBgNVHSUEFjAUBggrBgEFBQcDAgYIKwYBBQUHAwQwgf0GA1UdHwSB9TCB8jBWoFSgUqRQME4xCzAJBgNVBAYTAkNOMRswGQYDVQQKExJDRkNBIE9wZXJhdGlvbiBDQTIxDDAKBgNVBAsTA0NSTDEUMBIGA1UEAxMLY3JsMTAxXzcwNDAwgZeggZSggZGGgY5sZGFwOi8vY2VydDg2My5jZmNhLmNvbS5jbjozODkvQ049Y3JsMTAxXzcwNDAsT1U9Q1JMLE89Q0ZDQSBPcGVyYXRpb24gQ0EyLEM9Q04/Y2VydGlmaWNhdGVSZXZvY2F0aW9uTGlzdD9iYXNlP29iamVjdGNsYXNzPWNSTERpc3RyaWJ1dGlvblBvaW50MDQGAypWAQQtEytDVVNUT01FUl9UWFA7MTAwMDAzNjU2NDI7aGsxMDAxMDAxQHRlc3QuY29tMA0GCSqGSIb3DQEBBQUAA4GBAAEe1lD6k0PCl8vTwOTGupqfTVhPtjlZyycWZmYkdlQhFlyFMd7TLH7d7BGbCPjqlyTq58dCy+OT9+ZSZm+fq/PnRF+Wu5yKmAup2dakSiXq/HJlPgYg2X2DmtkfAcg34LTmbNeJafpwfAwqHWrlu1E8vBzZs0b7oH8Xca5yoQEcMYHjMIHgAgEBMD4wKjELMAkGA1UEBhMCQ04xGzAZBgNVBAoTEkNGQ0EgT3BlcmF0aW9uIENBMgIQanup6wrfn3It8WY0B+4R7DAJBgUrDgMCGgUAMA0GCSqGSIb3DQEBAQUABIGAF6UQ9dC79UnhZ5tI6rBofkbvfCg1cVLblFc177KqV7LKBpGLLAmLt7Tg38r+xfkkaPkkI8BUpezh6snZjIMVL6v3PjTJkynqWfvLYEh3wWhAtZfjWEvxP5jver3Cmn92kqQ4HBKmnWKqRr0gFSbsTl4qAvlvCWKI6JDYDZ96eRY=";

    /**
     * 获取证书的全路径
     * @return
     */
    public static String getSignPath(){
		String str = BHACommon.class.getClassLoader().getResource("bha.pfx").toString();
		return str.replaceFirst("^file:/", "");
    }
}
